function initUserModel(sequelize, DataTypes) {
    const User = sequelize.define('User', {
        uid: {
            type: DataTypes.INTEGER,
            primaryKey: true,
            autoIncrement: true,

        },
        username: {
            type: DataTypes.STRING,
            comment: '用户名',
        },
        password: {
            type: DataTypes.STRING,
            comment: '密码',

        },
        tel: {
            type: DataTypes.STRING,
            comment: '手机号',
        },
        email: {
            type: DataTypes.STRING,
            comment: '邮箱',
        },
        avatar: {
            type: DataTypes.STRING,
            comment: '头像',
        },
    }, {
        tableName: 'users',
    });
    return User;
}

module.exports = initUserModel;
